package cn.wolfcode.wolfcodemall.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

@ToString
@Getter
@Setter
public class ProductOrder {
    private Integer productorderId;

    private String productorderCode;

    private String productorderAddress;

    private String productorderDetailAddress;

    private String productorderPost;

    private String productorderReceiver;

    private String productorderMobile;

    private Date productorderCreateDate;

    private Date productorderPayDate;

    private Date productorderDeliveryDate;

    private Date productorderConfirmDate;

    private Integer productorderStatus;

    private Integer productorderUserId;

    //拥有的订单项
    private List<ProductOrderItem> productOrderItemList;

    //自定义
    private User user;

    public String getProductorderCreateDate(){
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(productorderCreateDate);
    }

}